///:TestController.java
package com.cqgcxy.oes.web;

import com.cqgcxy.oes.common.JsonResult;
import com.cqgcxy.oes.util.ResponseUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author icechen1219
 * @date 2019/12/30
 */
@Api(tags = "这是一个测试示例：通常是一个模块的名称")
@RestController
@RequestMapping("/test")
public class TestController {

    @ApiOperation("这个一个具体的请求接口：通常描述接口的作用")
    @GetMapping("test1")
    public JsonResult test(){
        return ResponseUtil.ok();
    }
}
///:TestController.java
